export const PIC_REVIEW_STATUS_ENUM = {
  REVIEWING: 0,
  PASS: 1,
  REJECT: 2,
} as const; // 使用 as const 确保枚举值为常量

// 将键显式声明为 string | number 类型
export const PIC_REVIEW_STATUS_MAP: Record<(typeof PIC_REVIEW_STATUS_ENUM)[keyof typeof PIC_REVIEW_STATUS_ENUM], string> = {
  0: '待审核',
  1: '通过',
  2: '拒绝',
};

// 使用 Object.entries 替代 Object.keys，确保类型安全
export const PIC_REVIEW_STATUS_OPTIONS = Object.entries(PIC_REVIEW_STATUS_MAP).map(([key, label]) => {
  return {
    label,
    value: key, // key 为字符串类型
  };
});
